package com.mallcai.bigdata.ladon.config.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by oneape<oneape15@163.com>
 * Created 2019-05-23 17:18.
 * Modify:
 */
@Data
@Component
@ConfigurationProperties("spring.datasource")
public class DatasourceProperties {
    private String  type;
    private String  driverClassName;
    private String  url;
    private String  username;
    private String  password;
    private Boolean defaultAutoCommit;
    private Boolean autoCommit;
    private Integer maximumPoolSize;
    private Integer maxIdle;
    private Integer maxWait;
    private Integer minIdle;
    private Integer initialSize;
    private String  validationQuery;
    private Boolean testWhileIdle;
    private Boolean testOnBorrow;
    private Boolean testOnReturn;
    private Long    timeBetweenEvictionRunsMillis;
    private Long    minEvictableIdleTimeMillis;
    private Boolean poolPreparedStatements;
}
